From 6ac675fcaa3948e2322b11ed425f11171c13f874 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 31 Oct 2005 23:54:24 +0000 Subject: [PATCH] Ozi: Don't do the wierd name splitting thing for multimode input if we're writing to stdout. --- gpsbabel/ozi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsbabel/ozi.c b/gpsbabel/ozi.c index ce48e8f6e..b33d1f917 100644 --- a/gpsbabel/ozi.c +++ b/gpsbabel/ozi.c @@ -69,9 +69,14 @@ ozi_openfile(char *fname) { char buff[32]; /* if we're doing multi-track output, sequence the filenames like: - * mytrack.plt, mytrack-1.plt... + * mytrack.plt, mytrack-1.plt...unless we're writing to stdout. */ + if (0 == strcmp(fname, "-")) { + file_out = xfopen(fname, "wb", MYNAME); + return; + } + if ((track_out_count) && (ozi_objective == trkdata)) { sprintf(buff, "-%d", track_out_count); } else { -- 2.30.2